#!/usr/bin/awk -f

BEGIN {
    srand()

    for (ntest = 0; ntest < 1000; ntest++) {
        nparam = int(rand() * 1000) + 1
        rand_num = ""
        for (i = 0; i < nparam; i++)
            rand_num = sprintf("%s %d", rand_num, int(rand() * 100000))
        system("./qsort2 " rand_num)
    }
}
